<!-- include tpl=header -->
<section class="bg-light p-5 bg-default"{if $cate_rs.banner || $page_rs.banner} style="background-image:url('{$cate_rs.banner ? $cate_rs.banner.filename : $page_rs.banner.filename}')"{/if}>
	<h1 class="p-4 text-center">{$cate_rs ? $cate_rs.title : $page_rs.title}</h1>
	<!-- php:$taglist = $cate_rs.tag ? $cate_rs.tag : $page_rs.tag -->
	<!-- if $taglist -->
	<div class="container">
		<div class="text-center m-3">
			<span class="p-2 bg-dark bg-opacity-10 rounded">
			标签：
			<!-- loop from=$taglist key=$k value=$v id=$idxx -->
			{$v.html}<!-- if $idxx.total != $idxx.num -->，<!-- /if -->
			<!-- /loop -->
			</span>
		</div>
	</div>
	<!-- /if -->
</section>
<section><!-- include tpl=block/breadcrumb --></section>
<!-- if $filter -->
<section class="container filter">
	<!-- loop from=$filter key=$key value=$value id=$tmpid -->
	<div class="row{if $tmpid.num != $tmpid.total} border-bottom{/if}">
		<div class="col-2 text-blue text-end">
			<div class="p-2">{$value.title}：</div>
		</div>
		<div class="col-10" id="filter_{$value.identifier}">
			<div class="d-flex justify-content-start">
				<div class="p-2">
					<a href="{$value.url}" class="btn btn-sm {if $value.highlight}btn-primary{else}btn-light{/if}">不限</a>
				</div>
				<!-- loop from=$value.list key=$k value=$v id=$tmpid2 -->
		    	<div class="p-2"><a class="btn btn-sm {if $v.highlight}btn-primary{else}btn-light{/if}" data-val="{$v.val}" href="javascript:filter_submit('{$value.url}','{$value.identifier}','{$v.val}','{$value.join}');void(0);">{$v.title}</a></div>
		    	<!-- /loop -->
		    </div>
		</div>
	</div>
	<!-- /loop -->
</section>
<!-- /if -->

<section class="container">
	<div class="row mt-3">
		<div class="col col-sm-4 col-md-3">
			<div class="mb-3"><!-- include tpl=block/catelist cid=$cate_rs.id pid=$page_rs.id title=$page_rs.title --></div>
			<div class="mb-3"><!-- include tpl=block/contact --></div>
			<div class="mb-3"><!-- include tpl=block/taglist --></div>
		</div>
		<div class="col col-sm-8 col-md-9">
			<div class="row row-cols-1 row-cols-sm-2 row-cols-lg-3">
				<!-- loop from=$rslist key=$key value=$value -->
				<div class="col mb-3">
					<div class="card">
						<a href="{$value.url}" title="{$value.title}"><img src="{$value.thumb.gd.thumb}" class="card-img-top" alt="{$value.title}" /></a>
						<div class="card-body">
							<h5 class="card-title text-2">{$value.title}</h5>
							<!-- if $value.apps && $value.apps.coupon && $value.apps.coupon.rs -->
							<div class="discount"><img src="{$value.apps.coupon.rs.pic1}"/></div>
							<!-- /if -->
							<!-- if $page_rs.is_biz --><div class="card-text text-danger text-center p-2">{func price_format $value.price $value.currency_id $config.currency_id}</div><!-- /if -->
							<a href="{$value.url}" class="btn btn-primary d-block">查看更多</a>
						</div>
					</div>
				</div>
				<!-- /loop -->
			</div>
			<div class="mt-2">
				<!-- include tpl=block/pagelist -->
			</div>
		</div>
	</div>
</section>
<!-- include tpl=footer -->